package com.codemes.happylist.utils;

import cn.hutool.core.io.FileUtil;
import javafx.scene.media.Media;

import java.io.File;
import java.lang.reflect.Field;
import java.net.MalformedURLException;

/**
 * @author nscoffee
 */
public final class FilePathConst {
    public static final String RESOURCES_DIR_CACHE;

    public static final String RESOURCES_DIR_ICIBA;

    public static final String RESOURCES_DIR_MUSIC;

    private static String BASE_DIR="/tmp/.codemes_tools"+File.separator;
    static {
        String userHomeDir = System.getProperty("user.home");
        if(null != userHomeDir){
            BASE_DIR = userHomeDir+File.separator+".codemes_tools"+File.separator;
        }
        RESOURCES_DIR_CACHE = BASE_DIR+"cache";
        RESOURCES_DIR_ICIBA = BASE_DIR+"iciba";
        RESOURCES_DIR_MUSIC = BASE_DIR+"music";
    }
}
